Services
2013/12/18 |
[1] | Stop services that are enabled by default if you don't need them. List all systemd services by a command below. |
[root@dlp ~]# systemctl -t service UNIT LOAD ACTIVE SUB DESCRIPTION auditd.service loaded active running Security Auditing Service crond.service loaded active running Command Scheduler dbus.service loaded active running D-Bus System Message Bus fedora-readonly.service loaded active exited Configure read-only root supp getty@tty1.service loaded active running Getty on tty1 kmod-static-nodes.service loaded active exited Create list of required stati lvm2-lvmetad.service loaded active running LVM2 metadata daemon lvm2-monitor.service loaded active exited Monitoring of LVM2 mirrors, s lvm2-pvscan@252:2.service loaded active exited LVM2 PV scan on device 252:2 network.service loaded active exited LSB: Bring up/down networking serial-getty@ttyS0.service loaded active running Serial Getty on ttyS0 sshd.service loaded active running OpenSSH server daemon systemd-fsck-root.service loaded active exited File System Check on Root Dev systemd-f...699622b3.service loaded active exited File System Check on /dev/dis systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running Login Service systemd-random-seed.service loaded active exited Load/Save Random Seed systemd-remount-fs.service loaded active exited Remount Root and Kernel File systemd-sysctl.service loaded active exited Apply Kernel Variables systemd-t...etup-dev.service loaded active exited Create static device nodes in systemd-t...es-setup.service loaded active exited Recreate Volatile Files and D systemd-udev-trigger.service loaded active exited udev Coldplug all Devices systemd-udevd.service loaded active running udev Kernel Device Manager systemd-update-utmp.service loaded active exited Update UTMP about System Rebo systemd-u...sessions.service loaded active exited Permit User Sessions systemd-v...le-setup.service loaded active exited Setup Virtual Console user@0.service loaded active running User Manager for 0 LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 27 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'. |
[2] | Stop a service. The example below means stop 'sendmail' and disable auto-start at booting system. |
[root@dlp ~]# systemctl stop sendmail.service [root@dlp ~]# systemctl disable sendmail.service rm '/etc/systemd/system/multi-user.target.wants/sm-client.service' rm '/etc/systemd/system/multi-user.target.wants/sendmail.service' |
[3] | There are some SysV services on Fedora 20. Those are controled by chkconfig like below. |
[root@dlp ~]# chkconfig --list Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'. netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off # unset auto-start setting for a netconsole [root@dlp ~]# chkconfig netconsole off |